const express = require('express')
const cors = require('cors')
const app = express()

app.use(cors());

app.get('/',(req,res) => {
    res.send('你好')
})
app.get('/post',(req,res) => {
    res.send('文章列表')
})
app.get('/cate',(req,res) => {
    res.send('分类列表')
})

app.listen(8080,() => {
    console.log('server running at http://127.0.0.1:8080');
})